/**
 *
 */
package cn.lbw.spider.monitor.context;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.web.servlet.view.freemarker.FreeMarkerView;


/**
 * Created by lzd on 2017/3/28.
 */

public class MyFreeMakerView extends FreeMarkerView {

    private static final String CONTEXT_PATH = "baseRoot";

    @Override
    protected void exposeHelpers(Map<String, Object> model, HttpServletRequest request) throws Exception {
        model.put(CONTEXT_PATH, request.getContextPath());
        super.exposeHelpers(model, request);
    }
}
